﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="ServiceDetail.aspx.cs" Inherits="StudentAppointmentPlatform.ServiceDetail" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <asp:ScriptManager runat="server"></asp:ScriptManager>
    <asp:UpdatePanel runat="server">
        <ContentTemplate>
            <h2>服务详情</h2>
            <div class="info">
                <fieldset class="serviceDetail">
                    <legend>服务项信息</legend>
                    <p>
                        <asp:Label runat="server" AssociatedControlID="lbDirectorName">负责人:</asp:Label>
                        <asp:Label ID="lbDirectorName" runat="server" CssClass="textEntry" Enabled="False"></asp:Label>
                    </p>
                    <p>
                        <asp:Label runat="server" AssociatedControlID="lbServiceName">服务名称:</asp:Label>
                        <asp:Label ID="lbServiceName" runat="server" CssClass="textEntry"></asp:Label>
                    </p>
                    <p>
                        <asp:Label runat="server" AssociatedControlID="lbIntroduction">服务简介:</asp:Label>
                        <asp:Label ID="lbIntroduction" runat="server" CssClass="textEntry" TextMode="MultiLine" Rows="3"></asp:Label>
                    </p>
                    <p>
                        <asp:Label runat="server" AssociatedControlID="lbTimeBuckets">可预约的时间:</asp:Label>
                        <asp:Label ID="lbTimeBuckets" runat="server" CssClass="textEntry"></asp:Label>
                    </p>
                    <p>
                        <asp:Label runat="server" AssociatedControlID="lbPerMultiTime">每个时间分段的大小（单位：小时）:</asp:Label>
                        <asp:Label ID="lbPerMultiTime" runat="server" CssClass="textEntry"></asp:Label>
                    </p>
                    <p>
                        <asp:Label runat="server" AssociatedControlID="lbMultiNum">每个时间分段允许的预约人数（单位：人次）:</asp:Label>
                        <asp:Label ID="lbMultiNum" runat="server" CssClass="textEntry"></asp:Label>
                    </p>
                </fieldset>
                <p class="submitButton">
                    <asp:Button runat="server" ID="btnOrder" Text="预约" OnClick="btnOrder_OnClick"/>
                    <asp:Button ID="btnBack" runat="server" Text="返回" OnClick="btnBack_OnClick"/>
                </p>
            </div>
            <div runat="server" ID="OrderArea" class="order" Visible="False">
                <fieldset class="serviceDetail">
                    <legend>预约服务</legend>
                    <p>
                        <asp:Label runat="server" AssociatedControlID="ChoosedDate">选择日期:</asp:Label>
                        <asp:Label ID="ChoosedDate" runat="server"></asp:Label>
                        <asp:Calendar ID="Date" runat="server" OnSelectionChanged="Date_OnSelectionChanged" OnDayRender="Date_OnDayRender"></asp:Calendar>                      
                    </p>
                    <p>
                        <asp:Label runat="server" AssociatedControlID="ChooseTime">选择时间段:</asp:Label>
                        <asp:DropDownList ID="ChooseTime" runat="server" OnSelectedIndexChanged="ChooseTime_OnSelectedIndexChanged" AutoPostBack="True"></asp:DropDownList>                 
                    </p>
                    <p>
                        <asp:Label runat="server" AssociatedControlID="RemainNum">本时段剩余可预约人数:</asp:Label>
                        <asp:Label ID="RemainNum" runat="server"></asp:Label>                
                    </p>
                </fieldset>
                <p class="submitButton">
                    <asp:Button runat="server" ID="MakeOrder" Text="确定" OnClick="MakeOrder_OnClick"/>
                    <asp:Button runat="server" ID="CancelOrder"  Text="取消" OnClick="CancelOrder_OnClick"/>
                </p>
            </div>
        </ContentTemplate>        
    </asp:UpdatePanel>
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="FooterContent" runat="server">
</asp:Content>
